import Vue from 'vue'
import Router from 'vue-router'
import NotFoundComponent from '@/components/notfoundcomponent'
import homepage from '@/components/homepagePc'
import module from '@/router/module';
Vue.use(Router)
let routeArray = [
  {
    path: '/',
    name: 'default',
    component: homepage,
  },
  {path: '*', component: NotFoundComponent}
];

routeArray = routeArray.concat(module);
/*加入基准路径用以产品级打包*/
let basePath = process.env.basePath;
console.info("设置基准路径为：" + basePath);

export default new Router({
  mode: 'history',
  base: basePath,
  routes: routeArray
});

